package com.kaibes.core.spring.proxy;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.beans.factory.annotation.Autowired;

import com.kaibes.core.base.proxy.ProxyInvokeListener;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Autowired(required = false)
public @interface Proxy {
    boolean value() default true;
    Class<? extends ProxyInvokeListener> listener() default ProxyInvokeListener.class;
}
